package org.thunms.framework.utils;

import java.beans.PropertyEditorSupport;

import org.apache.commons.lang3.StringUtils;

public class CustomStringTrimEditor extends PropertyEditorSupport {
	

	@Override
	public void setAsText(String text) {
		if (StringUtils.isNotBlank(text)) {
			setValue(StringUtils.trim(text));
		} else if(text==null) {
			setValue(null);
		}else{
			setValue("");
		}
	}
}
